/**
 * Created by song on 02/07/2017.
 */
import Vue from 'vue'
import store from '@/store/global'

Vue.directive('appointment', (el, binding) => {
  el.onclick = () => {
    var appointmentParams = binding.value.split(',')
    store.commit('showAppointmentVisible')
    store.commit('changeHouseId', appointmentParams[0])
    store.commit('changeHouseCategory', appointmentParams[1])
  }
})
